package com.sds.sweng.swat.miplatform.ui.design.models.component;

import java.util.ArrayList;
import java.util.List;

import com.sds.sweng.swat.miplatform.ui.design.models.MiplatformComponent;
import com.sds.sweng.swat.miplatform.ui.design.models.area.sub.TableCellSubArea;
import com.sds.sweng.swat.miplatform.ui.design.utils.CloneUtils;

public class MTable extends MiplatformComponent {

	private List<MColumn> columns;
	private List<TableCellSubArea> tableCells;

	public MTable() {
		columns = new ArrayList<MColumn>();
		tableCells = new ArrayList<TableCellSubArea>();
	}

	public MTable clone() {
		MTable clone = (MTable) super.clone();
		clone.setColumns(CloneUtils.clone(columns));
		clone.setTableCells(CloneUtils.clone(tableCells));

		return clone;
	}

	public List<MColumn> getColumns() {
		return columns;
	}

	public void setColumns(List<MColumn> columns) {
		this.columns = columns;
	}

	public List<TableCellSubArea> getTableCells() {
		return tableCells;
	}

	public void setTableCells(List<TableCellSubArea> tableCells) {
		this.tableCells = tableCells;
	}

}
